package cabbage.model.logic;

import java.sql.SQLException;

import cabbage.database.idao.IAccountDAO;
import cabbage.database.operations.AccountDAO;
import cabbage.logic.i.IAccountLogin;

public class AccountLogin implements IAccountLogin {

	private IAccountDAO account;	

	public AccountLogin() {

	}

	@Override
	public boolean loginUser(String username, String password) throws SQLException {
		account = new AccountDAO();
		return account.verifyLogin(username, password);
	}

}
